#include "world.h"

World::World() {
    SDL_Init(SDL_INIT_VIDEO);
    wW_ = SDL_CreateWindow("PointLightTest", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, WIDTH, HEIGHT, SDL_WINDOW_SHOWN);
    rR_ = SDL_CreateRenderer(wW_, -1, SDL_RENDERER_ACCELERATED);
}

World::~World() {
    SDL_DestroyRenderer(rR_);
    SDL_DestroyWindow(wW_);
    SDL_Quit();
}

SDL_Renderer* World::GetWorldRenderer() {
    return rR_;
}